<template>
  <el-card shadow="never" class="border-none">
    <div class="total-body">
      <div class="left-title">统计</div>
      <div class="info">
        <div class="left">
          <div class="n-box">
            <div class="icon">
              <el-icon><Goods /></el-icon>
            </div>
            <div>
              <div class="title">销售额</div>
              <div class="num">1298</div>
            </div>
          </div>
          <div class="change">下降 20%</div>
        </div>
        <div class="right">
            <div class="n-box">
            <div class="icon">
              <el-icon><Goods /></el-icon>
            </div>
            <div>
              <div class="title">销售额</div>
              <div class="num">1298</div>
            </div>
          </div>
          <div class="change">下降 20%</div>
        </div>
      </div>

      <div class="user-list">
        <div class="avatar" v-for="(item,index) in 5" :key="index">
            <img  src="@/assets/images/notion-avatar.png" alt="" >
            <div>DengJe</div>
        </div>
        <div class="more">
            更多
        </div>
      </div>
    </div>
  </el-card>
</template>
<script setup>
import { reactive } from "vue";

    
</script>
<style lang="scss" scoped>
.total-body {
  .left-title {
    font-weight: bold;
    position: relative;
    margin: 0 0 0 15px;
    &::before {
      content: "";
      position: absolute;
      left: -20px;
      height: 25px;
      width: 10px;
      background-color: #ffbc9a;
      border-radius: 4px;
    }
  }
  .info {
    background-color: #f4f4f4;
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 15px;
    border-radius: 30px;
    .left {
      display: flex;
      justify-content: space-between;
      background: #fff;
      width: 45%;
    border-radius: 30px;
    padding: 15px;

      .n-box {
        display: flex;
        .icon {
          background-color: #b1e5fd;
          width: 30px;
          height: 30px;
          border-radius: 50px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .title {
          font-size: 13px;
          color: #999;
          margin-left: 15px;
        }
        .num {
          font-size: 50px;
        }
      }
      .change {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #ffbc9a;
        height: 30px;
        font-size: 10px;
        padding: 10px;
        border-radius: 20px;
        font-weight: bold;
      }
    }
    .right {
        display: flex;
      justify-content: space-between;
    //   background: #fff;
      width: 45%;
    border-radius: 30px;
    padding: 15px;

      .n-box {
        display: flex;
        .icon {
          background-color: #c3b1fd;
          width: 30px;
          height: 30px;
          border-radius: 50px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .title {
          font-size: 13px;
          color: #999;
          margin-left: 15px;
        }
        .num {
          font-size: 50px;
        }
      }
      .change {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #ff9ab0;
        height: 30px;
        font-size: 10px;
        padding: 10px;
        border-radius: 20px;
        font-weight: bold;
      }
    }
  }

  .user-list{
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    .avatar{
        padding: 10px;
        border-radius: 50px;
    
        img{
            width: 60px;
        height: 60px;
        }
    }
  }
}
</style>